package com.hongyuan.sellfitness.ui.home.beans;

import com.hongyuan.sellfitness.data.md5.BaseUtil;
import com.hongyuan.sellfitness.utils.TimeUtil;

import java.util.List;

public class CoachListBean {

    private List<ListBean> list;

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * coach_head : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20190811/86a9ea325c1477ffca28a847da2de641e203bb21_200x200.jpg
         * coach_nickname :
         * mi_sex : 1
         * m_id : 84
         * coach_ft_ids : 16,3,2,1
         * os_name : 湖州首玺健身爱山店
         * os_id : 21
         * distance_um : 265
         * total_course : 623
         * cp_price : 320
         * ft_str : 减脂/增肌/塑形/体态调整
         * last_kong_date : 2020-10-14 20:30
         */

        private String coach_head;
        private String coach_nickname;
        private int mi_sex;
        private int m_id;
        private String coach_ft_ids;
        private String os_name;
        private int os_id;
        private int distance_um;
        private int total_course;
        private double cp_price;
        private String ft_str;
        private String last_kong_date;

        public String getCoach_head() {
            return coach_head;
        }

        public void setCoach_head(String coach_head) {
            this.coach_head = coach_head;
        }

        public String getCoach_nickname() {
            return coach_nickname;
        }

        public void setCoach_nickname(String coach_nickname) {
            this.coach_nickname = coach_nickname;
        }

        public int getMi_sex() {
            return mi_sex;
        }

        public void setMi_sex(int mi_sex) {
            this.mi_sex = mi_sex;
        }

        public int getM_id() {
            return m_id;
        }

        public void setM_id(int m_id) {
            this.m_id = m_id;
        }

        public String getCoach_ft_ids() {
            return coach_ft_ids;
        }

        public void setCoach_ft_ids(String coach_ft_ids) {
            this.coach_ft_ids = coach_ft_ids;
        }

        public String getOs_name() {
            return os_name;
        }

        public void setOs_name(String os_name) {
            this.os_name = os_name;
        }

        public int getOs_id() {
            return os_id;
        }

        public void setOs_id(int os_id) {
            this.os_id = os_id;
        }

        public int getDistance_um() {
            return distance_um;
        }

        public void setDistance_um(int distance_um) {
            this.distance_um = distance_um;
        }

        public int getTotal_course() {
            return total_course;
        }

        public void setTotal_course(int total_course) {
            this.total_course = total_course;
        }

        public String getCp_price() {
            return cp_price + "";
        }

        public void setCp_price(double cp_price) {
            this.cp_price = cp_price;
        }

        public String getStrCp_price() {
            return BaseUtil.getNoZoon(cp_price);
        }


        public String getFt_str() {
            return "擅长："+ft_str;
        }

        public void setFt_str(String ft_str) {
            this.ft_str = ft_str;
        }

        public String getLast_kong_date() {
            return last_kong_date;
        }

        public void setLast_kong_date(String last_kong_date) {
            this.last_kong_date = last_kong_date;
        }

        /*
        * 总共卖课
        * */
        public String getSellNum(){
            return "累计售课"+total_course+"节";
        }

        public String showOsName(){
            return "门店"+os_name;
        }

        /*
         * 处理时间的显示
         * */
        public String showTimeText(){
            if(TimeUtil.isToday(last_kong_date,TimeUtil.dateFormat)){
                return "可约时间：今天"+TimeUtil.formatDate(last_kong_date,TimeUtil.dateFormat,TimeUtil.dateFormatHM);
            }
            return "可约时间："+TimeUtil.formatDate(last_kong_date,TimeUtil.dateFormat,TimeUtil.dateFormatMDHM);
        }
    }
}
